﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DiDiaoYuanAndPaiShui.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS._8.QiTaGL.DiDiaoYuanAndPaiShui" Theme="Default" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script type="text/javascript">
        //用户号回车事件
        //function tab1txtShuiLiangPress() {
        //    if (event.keyCode == 13) {
        //        ASPxCallbackCommon.PerformCallback("shuiliang");
        //    }
        //}

        //function ASPxCallbackCommonComplete(rs) {

        //}
    </script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                 <div class="tabletitle1" align="center">
                       地调院与排水所数据导出
                    </div>
            <%--   <div style="width: 100%;">
                    <dx:ASPxCallback ID="ASPxCallbackCommon" ClientInstanceName="ASPxCallbackCommon" runat="server" OnCallback="ASPxCallbackCommon_Callback1" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallbackCommonComplete(e.result);}"></dx:ASPxCallback>
               </div>--%>
               <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="100%" Height="485px">
                   <TabPages>
                       <dx:TabPage Text="地调院" Visible="true">
                         <ContentCollection>
                              <dx:ContentControl>
                                  <table>
                                      <tr>
                                          <td><span>水量年月：</span></td>
                                          <td>
                                              <dx:ASPxTextBox ID="tab1txtShuiLiang" ClientInstanceName="tab1txtShuiLiang" runat="server" Width="50%" MaxLength="6" AutoPostBack="false">
                                                  
                                              </dx:ASPxTextBox>
                                          </td>
                                          <td>
                                               <dx:ASPxLoadingPanel ID="LoadPanel" ClientInstanceName="LoadPanel11" runat="server" Text="正在查询..."></dx:ASPxLoadingPanel> 
                                              <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click1" UseSubmitBehavior="false">
                                                   <ClientSideEvents Click="function(s,e){LoadPanel11.Show();}" />
                                                  <ClientSideEvents />
                                              </dx:ASPxButton>
                                          </td>
                                          <td style="text-align:right">
                                              <dx:ASPxLabel ID="zjl" Text="共0条"  Width="300" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                          </td>
                                      </tr>
                                  </table>
                                  <dx:ASPxGridView ID="gvDiDiaoYuan" ClientInstanceName="gvDiDiaoYuan" runat="server" AutoGenerateColumns="False" KeyFieldName="用户号" Theme="Aqua1" Width="100%">
                                      <Columns>
                                          <dx:GridViewDataTextColumn FieldName="用户号" Caption="用户号" Width="20%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="用户名" Caption="用户名" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="原井编号" Caption="原井编号" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="井编号" Caption="井编号" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="环线标记" Caption="环线标记" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="层次" Caption="层次" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="普通采" Caption="普通采" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="矿泉采" Caption="矿泉采" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="采灌采" Caption="采灌采" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                          <dx:GridViewDataTextColumn FieldName="回灌" Caption="回灌" Width="35%">
                                          </dx:GridViewDataTextColumn>
                                      </Columns>
                                       <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="450"  />
                                <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                <Settings ShowFooter="True" />
                                <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                <SettingsBehavior ProcessFocusedRowChangedOnServer="False" />
                                <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvShenJingXX);}" />--%>
                                  </dx:ASPxGridView>
                                          <div >
                                    <table>
                                        <tr>
                                            <td><span>普通采：</span></td>
                                            <td>  
                                               <dx:ASPxTextBox ID="ASPxPuTong" ClientInstanceName="tab1txtShuiLiang" runat="server"  ReadOnly="true">
                                              </dx:ASPxTextBox>
                                            </td>
                                            <td><span>矿泉采：</span></td>
                                            <td>
                                               
                                               <dx:ASPxTextBox ID="ASPxKuangQuan" ClientInstanceName="tab1txtShuiLiang" runat="server"  ReadOnly="true">
                                              </dx:ASPxTextBox>
                                            </td>
                                              <td><span>采灌采：</span></td>
                                              <td>
                                               <dx:ASPxTextBox ID="ASPxCaiGuan" ClientInstanceName="tab1txtShuiLiang" runat="server"  ReadOnly="true">
                                              </dx:ASPxTextBox>
                                            </td>
                                              <td><span>回灌量：</span></td>
                                           <td>
                                               <dx:ASPxTextBox ID="ASPxHuiGuan" ClientInstanceName="tab1txtShuiLiang" runat="server"  ReadOnly="true">
                                              </dx:ASPxTextBox>
                                            </td>
                                            &nbsp;
                                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <dx:ASPxButton ID="btn_ToExDDY" runat="server" Text="导出EXCEL"  UseSubmitBehavior="false" >
                                                    <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                                            </dx:ASPxButton></td>
                                        </tr>
                                    </table>

                                     </div>

                              </dx:ContentControl>
                      
                         </ContentCollection>
                       </dx:TabPage>
                       <dx:TabPage Text="排水所" Visible="true">
                              <ContentCollection>
                              <dx:ContentControl>
                                <table><tr>
                                    <td style="width:100px;text-align:right;"><span>水量年月：</span></td>
                                    <td style="width:80px"><dx:ASPxTextBox ID="tab2txtShuiLiang" ClientInstanceName="tab2txtShuiLiang" runat="server" Width="80%" MaxLength="6"><ClientSideEvents KeyPress="function(s,e){tab1txtShuiLiangPress();}" />
                        </dx:ASPxTextBox></td>
                                    <td style="width:50px;text-align:right;"> <span>季度：</span></td>
                                    <td style="width:100px">
                                        <asp:Panel runat="server" ID="Panel17">
                                            <dx:ASPxComboBox runat="server" ID="cmbjd" Width="80%" ClientInstanceName="cmbjd">
                                                <Items>
                                                    <dx:ListEditItem Text="第一季度" Value="1"  Selected="true"/>
                                                    <dx:ListEditItem Text="第二季度" Value="2" />
                                                    <dx:ListEditItem Text="第三季度" Value="3" />
                                                    <dx:ListEditItem Text="第四季度" Value="4" />
                                                </Items>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                   
                                    <td style="width:80px;text-align:right;">  <span>区县名：</span></td>
                                    <td style="width:100px">
                                        <asp:Panel runat="server" ID="Panel171">
                                            <dx:ASPxComboBox runat="server" ID="cmbqx" Width="80%" ClientInstanceName="cmbqx">
                                                <Items>
                                                    <dx:ListEditItem Text="" Value="0" />
                                                    <dx:ListEditItem Text="老城区" Value="1" />
                                                    <dx:ListEditItem Text="宝山区" Value="2" />
                                                    <dx:ListEditItem Text="浦东新区" Value="3" Selected="true" />
                                                    <dx:ListEditItem Text="闵行区" Value="4" />
                                                    <dx:ListEditItem Text="嘉定区" Value="5" />
                                                </Items>
                                            </dx:ASPxComboBox>
                                        </asp:Panel>
                                    </td>
                                    <td style="width:200px;">
                                          <dx:ASPxLoadingPanel ID="LoadPanel2" ClientInstanceName="LoadPanel22" runat="server" Text="正在查询..."></dx:ASPxLoadingPanel> 
                                         <dx:ASPxButton ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" UseSubmitBehavior="true">
                                             <ClientSideEvents Click="function(s,e){LoadPanel22.Show();}" />
                                    </dx:ASPxButton>
                                   <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL" UseSubmitBehavior="true">
                                       <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                                    </dx:ASPxButton> 
                                    </td>
                                    <td style="text-align:right">
                                        <dx:ASPxLabel ID="zjl2" Text="共0条" Width="300" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                    </td>
                                </tr>
                                </table>
                                  
                                 
                                
                              <dx:ASPxGridView ID="gvPaiShuiSuo" ClientInstanceName="gvPaiShuiSuo" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YHH" Theme="Aqua1" Width="100%">
                                  <Columns>
                                      <dx:GridViewDataTextColumn FieldName="I_XH" Caption="序号" Width="5%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="S_QXM" Caption="区县" Width="8%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="S_YHH" Caption="用户号" Width="8%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="S_YHM" Caption="用户名" Width="25%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="S_DZ" Caption="地址" Width="22%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="I_PTC" Caption="普通采" Width="8%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="I_KQC" Caption="矿泉采" Width="8%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="I_CGC" Caption="采灌采" Width="8%">
                                      </dx:GridViewDataTextColumn>
                                      <dx:GridViewDataTextColumn FieldName="I_HG" Caption="回灌" Width="8%">
                                      </dx:GridViewDataTextColumn>
                                  </Columns>
                                         <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="450"  />
                               </dx:ASPxGridView>

                                    
                              </dx:ContentControl>
                                  
                         </ContentCollection>
                       </dx:TabPage>
                   </TabPages>
               </dx:ASPxPageControl>
            </ContentTemplate>
        </asp:UpdatePanel>
      <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div> 
    </div>
         
    </form>
</body>
</html>
